﻿/*****************************************************************************
Copyright (c) 2011 SmartVault, Inc.

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.
******************************************************************************/
using System;
using System.Collections.Generic;
using System.Text;

namespace SmartVault.Rest
{
    /// <summary>
    /// Constants
    /// 
    /// These are constants used by the REST implementation.
    /// </summary>
    public static class Constants
    {
        /// <summary>
        /// Endpoint for production.
        /// </summary>
        public const string PublicServer = "https://rest.smartvault.com";

        /// <summary>
        /// Endpoint for testing.
        /// </summary>
        public const string BetaServer = "https://beta-rest.smartvault.com";

        /// <summary>
        /// The root path for application integration
        /// </summary>
        public const string AppPath = "/nodes/app";

        /// <summary>
        ///  The root path for generic integration
        /// </summary>
        public const string PthPath = "/nodes/pth";
        
        /// <summary>
        ///  The root path for group information
        /// </summary>
        public const string GrpPath = "/nodes/grp";
        
        /// <summary>
        /// Slash
        /// </summary>
        public const string Slash = "/";


        internal const string StatUserInfoPath = "/auto/usr";
        internal const string SignUpNewUser = "/auto/snew";
        internal const string NoncePath = "/auto/auth/nonce/1";
        internal const string ClientTokenPath = "/auto/auth/ctoken/1";
        internal const string DelegationTokenPath = "/auto/auth/dtoken/1";
        internal const string PinEndpointPath = "/pin/end";
        internal const string ChildrenParameter = "children";
        internal const string AclParameter = "acl";
        internal const string ExPropertiesParameter = "eprop";
        //internal const string Users = "users";
        internal const string Search = "search";
        //internal const string Fuzzy = "fuzzy";
        //internal const string Content = "content";

        internal const string Page = "page";
        internal const string PerPage = "per_page";
        internal const string Sort = "sort";
        internal const string Direction = "direction";

    }
}
